package com.xmy.erp.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 转课详情
 * </p>
 *
 * @author hpiggy
 * @since 2023-09-09
 */
@TableName("order_transfer_detail")
@ApiModel(value = "OrderTransferDetail对象", description = "转课详情")
public class OrderTransferDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("新订单id")
    private Long orderId;

    @ApiModelProperty("原订单号")
    private Long oldOrderId;

    @ApiModelProperty("原订单详情id")
    private Long oldOrderDetailId;

    @ApiModelProperty("转出课时/退出课时")
    private Integer outHouse;

    @ApiModelProperty("转出金额/退出金额")
    private BigDecimal outPrice;

    private BigDecimal servePrice;

    private BigDecimal materialsPrice;

    private Long createdId;

    private LocalDateTime createdAt;

    @ApiModelProperty("补费前，欠费金额")
    private BigDecimal ownPrice;

    @ApiModelProperty("补费金额")
    private BigDecimal inPrice;

    @ApiModelProperty("订单类型：2补费，3转课，4退费，5转校")
    private Integer orderType;

    @ApiModelProperty("状态：0无，1确认到账，2订单作废")
    private Integer status;

    private Integer version;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }
    public Long getOldOrderId() {
        return oldOrderId;
    }

    public void setOldOrderId(Long oldOrderId) {
        this.oldOrderId = oldOrderId;
    }
    public Long getOldOrderDetailId() {
        return oldOrderDetailId;
    }

    public void setOldOrderDetailId(Long oldOrderDetailId) {
        this.oldOrderDetailId = oldOrderDetailId;
    }
    public Integer getOutHouse() {
        return outHouse;
    }

    public void setOutHouse(Integer outHouse) {
        this.outHouse = outHouse;
    }
    public BigDecimal getOutPrice() {
        return outPrice;
    }

    public void setOutPrice(BigDecimal outPrice) {
        this.outPrice = outPrice;
    }
    public BigDecimal getServePrice() {
        return servePrice;
    }

    public void setServePrice(BigDecimal servePrice) {
        this.servePrice = servePrice;
    }
    public BigDecimal getMaterialsPrice() {
        return materialsPrice;
    }

    public void setMaterialsPrice(BigDecimal materialsPrice) {
        this.materialsPrice = materialsPrice;
    }
    public Long getCreatedId() {
        return createdId;
    }

    public void setCreatedId(Long createdId) {
        this.createdId = createdId;
    }
    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }
    public BigDecimal getOwnPrice() {
        return ownPrice;
    }

    public void setOwnPrice(BigDecimal ownPrice) {
        this.ownPrice = ownPrice;
    }
    public BigDecimal getInPrice() {
        return inPrice;
    }

    public void setInPrice(BigDecimal inPrice) {
        this.inPrice = inPrice;
    }
    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "OrderTransferDetail{" +
            "id=" + id +
            ", orderId=" + orderId +
            ", oldOrderId=" + oldOrderId +
            ", oldOrderDetailId=" + oldOrderDetailId +
            ", outHouse=" + outHouse +
            ", outPrice=" + outPrice +
            ", servePrice=" + servePrice +
            ", materialsPrice=" + materialsPrice +
            ", createdId=" + createdId +
            ", createdAt=" + createdAt +
            ", ownPrice=" + ownPrice +
            ", inPrice=" + inPrice +
            ", orderType=" + orderType +
            ", status=" + status +
            ", version=" + version +
        "}";
    }
}
